package com.hushui.mall.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hushui.common.utils.PageUtils;
import com.hushui.mall.commodity.entity.SkuInfoEntity;
import com.hushui.mall.commodity.vo.SkuItemVo;

import java.util.List;
import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author miya
 * @email sunlightcs@gmail.com
 * @date 2023-03-16 11:38:45
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);
    PageUtils querySkuPage(Map<String, Object> params);
      /**
       * 查询一个sku的所有信息合并
       * */
    SkuItemVo item(Long skuId) throws ExecutionException, InterruptedException;

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);
}

